import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-inputs',
  templateUrl: './inputs.page.html',
  styleUrls: ['./inputs.page.scss'],
})
export class InputsPage implements OnInit {
  pet: string = "input";

  constructor(private router: Router) { }

  ngOnInit() {
  }

  gotohome(){
    this.router.navigate(['/tabs/tab2'])
  }

  segmentChanged(ev: any) {
    this.pet = ev.detail.value
  }

  eventBlur(){
    console.log("输出eventBlur");
  }

  eventChange(){
    console.log("输出eventChange");
  }

  eventFocus(){
    console.log("输出eventFocus");
  }

  eventInput(){
    console.log("输出eventInput");
  }

}
